﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using VH.SharePoint.Api.MetaWeblog;
using VH.SharePoint.Api.Queries;

namespace VH.SharePoint.Api.Repositories.Mock
{
    public class MockCategoryRepository : CategoryRepository
    {
        private static readonly List<Category> _storage = new List<Category>();

        static MockCategoryRepository()
        {
            for (int i = 0; i < 10; i++)
            {
                _storage.Add(
                
                    new Category
                        {
                            Id = i.ToString(CultureInfo.InvariantCulture),
                            Name = "Category "+i,
                            Description = "My category "+i,
                            HtmlUrl = "", //Can be a search page which list posts by this category
                            ParentId = "",
                            RssUrl = ""
                        } 
                );
            }
            
        }

        public override IEnumerable<Category> FindAll()
        {
            throw new NotImplementedException();
        }

        public override IEnumerable<Category> FindAll(QueryConstraints<Category> constraints)
        {
            throw new NotImplementedException();
        }

        public override Category Get(string id)
        {
            throw new NotImplementedException();
        }

        public override void Create(Category entity)
        {
            throw new NotImplementedException();
        }

        public override void Update(Category entity)
        {
            throw new NotImplementedException();
        }

        public override void Delete(Category entity)
        {
            throw new NotImplementedException();
        }

        public override void ValidateUser(string username, string password)
        {
            
        }
    }
}
